package homework6_24.practice5;

import homework6_24.practice5.jiekou.Scan;
import homework6_24.practice5.jiekou.Swim;
import homework6_24.practice5.jiekou.Swimmer;

public class Dolphin extends Swimmer implements Swim, Scan {
	public Dolphin(String name, String speed) {
		super(name, speed);
	}

	@Override
	public void scan() {
		System.out.println(this.getName() + "正使用声纳探测移动船只！");
	}

	@Override
	public void swim() {
		System.out.println(this.getName() + "正在以的" + this.getSpeed() + "的速度跳出水面追逐船只！");
	}
}
